home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / libgplus.5 / libio / dbz / case.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-20  |  434 b   |  13 lines

  1. extern int cistrncmp();
  2. extern char *rfc822ize();
  3.  
  4. extern char casemap[];
  5.  
  6. /* must call cistrncmp before invoking TOLOW... */
  7. #define    TOLOW(c)    (casemap[(c)+128])    /* see case.c for why 128 */
  8.  
  9. /* ...but the use of it in CISTREQN is safe without the preliminary call (!) */
  10. /* CISTREQN is an optimised case-insensitive strncmp(a,b,n)==0; n > 0 */
  11. #define CISTREQN(a, b, n) \
  12.     (TOLOW((a)[0]) == TOLOW((b)[0]) && cistrncmp(a, b, n) == 0)
  13.